import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询销售头单列表
export function headQuery(query) {
  return request({
    url: '/system/salesOrderForm/headQuery',
    method: 'get',
    params: query
  })
}

// 查询销售明细列表
export function detailQuery(query) {
  return request({
    url: '/system/salesOrderForm/detailQuery',
    method: 'get',
    params: query
  })
}

// 查询销售头单详情
export function getSalesOrder(systematicOrderForm) {
  return request({
    url: '/system/salesOrderForm/' + parseStrEmpty(systematicOrderForm),
    method: 'get'
  })
}

// 删除销售单据
export function delSalesOrderForm(data) {
  return request({
    url: '/system/salesOrderForm/delete',
    method: 'post',
    data: data
  })
}